package com.medical.acc.mapper;


import com.medical.acc.model.PeopleRelation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PeopleRelationMapper {

	//查询全部
	List<PeopleRelation> selectAll();
	//根据id查询用户
	public PeopleRelation selectByPrimaryKey(int id);
	//根据peopleId查询用户
	public List<PeopleRelation> selectByPeopleId(String peopleId);
	//根据cardNo查询用户
	public List<PeopleRelation> selectByCardNo(String cardNo);
	//添加用户
	public void insert(PeopleRelation peopleRelation);
	//删除
	int deleteByPrimaryKey(int id);
	//更新
	int updateByPrimaryKey(PeopleRelation record);
}
